//
//  PKMineViewModel.swift
//  Panku
//
//  Created by mac on 2017/2/6.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit

class PKMineViewModel: NSObject {
    
    func titleForIndexPath(indexPath:IndexPath) -> String{
        
        var title:String?
        
        switch indexPath.section {
        case 0:
            switch indexPath.row {
            case 0:
                title = "M币贡献榜"
            case 1:
                title = "短视频"
            case 2:
                title = "收益"
            case 3:
                title = "账户"
            default:
                title = ""
            }
        case 1:
            switch indexPath.row {
            case 0:
                title = "等级"
            case 1:
                title = "实名认证"
            default:
                title = ""
            }

        case 2:
            title = "设置"
        default:
            title = ""
        }
        
        return title!
    }
    
    func numberOfSections() -> Int {
        return 3
    }
    
    func numberOfRows(InSection:Int) -> Int {
        switch InSection {
        case 0:
            return 4
        case 1:
            return 2
        case 2:
            return 1
        default:
            return 0
        }
    }
    
    func viewModelForConfigController() -> PKConfigViewModel{
        return PKConfigViewModel()
    }
    
    func viewModelForIMViewController() -> PKIMViewModel{
        return PKIMViewModel()
    }
    
    func viewModelForLoginViewController() -> PKLoginViewModel{
        return PKLoginViewModel()
    }

}
